package com.zs.server;

import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class ClientService {
	
	public void initSocket() {
		try {
			ServerSocket socketServer=new ServerSocket(8090);
			Socket socket=socketServer.accept();
			InputStream in=socket.getInputStream();
			int seq=in.read();
			in.close();
			System.out.println(seq);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}
